
public class Airport extends Icon {
	
	String name;	//Name of the military base
	String city;	//City where base is located
	
	public Airport(float _x, float _y, String n, String s) {
		x = _x;
		y = _y;
		name = n;
		city = s;
		
		width = 8;
		height = 10;
	}
	
	public void draw() {
		GLOBAL.processing.stroke(100);
		GLOBAL.processing.fill(GLOBAL.colorAirport);

		GLOBAL.processing.beginShape();
		
		GLOBAL.processing.vertex(x, y);
		GLOBAL.processing.vertex(x+1, y+6);
		GLOBAL.processing.vertex(x+6, y+8);
		GLOBAL.processing.vertex(x+1, y+10);
		GLOBAL.processing.vertex(x, y+12);
		GLOBAL.processing.vertex(x-1, y+10);
		GLOBAL.processing.vertex(x-6, y+8);
		GLOBAL.processing.vertex(x-1, y+6);
		GLOBAL.processing.vertex(x, y);
		
		GLOBAL.processing.endShape();
		
		//Draw info during mouse-over
		if(mouseOver()) {
			GLOBAL.isInfoShowingAir = true;
			String[] args = new String[3];
			args[0] = "(Airport)";
			args[1] = name;
			args[2] = city;
			drawInfoBox(args);	
		}
	}
	
}
